#ifndef BLUETOOTH_TASK_H
#define BLUETOOTH_TASK_H

#include "main.h"
#include "cmsis_os.h"  // 添加CMSIS-RTOS v1的头文件

typedef struct {
    int cmd1;
    int cmd2;
    int cmd3;
    int cmd4;
    int cmd6;
    int data8;
    int data9;
    int data10;
    int data11;
} Command;

void BluetoothTask(void const *argument);

void UARTReceiveTask(void const *argument);

int parseCommand(const char *buffer, Command *cmd);

void executeCommand(const Command *cmd);

int parseModeCommand(const char *buffer);

void executeModeCommand(int modeValue);

void processReceivedData(const char *data);

#endif // BLUETOOTH_TASK_H
